# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         test01
# Description:
# Author:       98745
# Date:         2019/3/13
#-------------------------------------------------------------------------------

class man:
    def __init__(self):
        self.name='pan'
        self.__age=21
    def helo(self):
        self.salary=8000
        print('hello')
    def __myage(self):
        return self.__age
    def getage(self):
        return self.__age
if __name__ =="__main__":
    m=man()

    m.helo()#通过点来调用属性和方法
    # print(m.name,m.age)
    # print(m.salary)
    # m.sex='女'
    # print(m.sex)
    print(m._man__myage())
    print(m.getage())